/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * editMember.java
 *
 * Created on 29-Sep-2010, 15:59:39
 */

package COMIC_BOOK_STORE;

import java.sql.*;
import javax.swing.JOptionPane;

/**
 *
 * @author benson
 */
public class MEMBER_EDIT extends javax.swing.JFrame {

    /** Creates new form editMember */
    public MEMBER_EDIT() {
        super("CUSTOMER EDIT");
        initComponents();
        this.setLocationRelativeTo(null);
        String member_code = MEMBER_CHECK_EDIT.member_code;
        String query = "select * from MEMBER where MEMBER_CODE = '" + member_code + "'";
          
//      --------------------------------------------------------------------------------------------------

                    try
            {
                DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
                Connection con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE","javaproject","javaproject");;

//      --------------------------------------------------------------------------------------------------

                Statement stmt = con.createStatement();
                ResultSet rs = stmt.executeQuery(query);

//      --------------------------------------------------------------------------------------------------

                String GENDER = "";
                String Birthday = "";
                
                   while (rs.next())
                   {
                        firstNameTextField.setText(rs.getString("MEMBER_FNAME").trim());
                        lastNameTextField.setText(rs.getString("MEMBER_LNAME").trim());
                        displayIcNumber.setText(rs.getString("MEMBER_ICNO").trim());
                        contactNumberTextField.setText(rs.getString("MEMBER_CONTACTNO").trim());

//        MEMBER_EDIT.dayComboBox
//        MEMBER_EDIT.monthComboBox
//        MEMBER_EDIT.yearComboBox

                        houseNumberTextField.setText(rs.getString("MEMBER_HOUSENO").trim());
                        roadTextField.setText(rs.getString("MEMBER_STREET").trim());
                        gardenTextField.setText(rs.getString("MEMBER_GARDEN").trim());
                        cityTextField.setText(rs.getString("MEMBER_CITY").trim());
                        postCodeTextField.setText(rs.getString("MEMBER_POSTCODE").trim());
                        StateTextField1.setText(rs.getString("MEMBER_STATE").trim());
                        
                 Birthday = rs.getString("MEMBER_DOB").trim();
                 GENDER = rs.getString("MEMBER_GENDER").trim();

                   }

                System.out.println("birthday " + Birthday);

            String bDay  = Birthday.substring(0, 2);
            String bMonth = Birthday.substring(3,6).trim();
            String bYear   = Birthday.substring(7,11);

//            bMonth = convertMonth(bMonth);

            System.out.println("byear" + bYear + " bMonth " + bMonth + " bDay " + bDay);

            dayComboBox.setSelectedItem(bDay);
            monthComboBox.setSelectedItem(bMonth);
            yearComboBox.setSelectedItem(bYear);

            if(GENDER.equalsIgnoreCase("M")) {
                femaleRadioButton.setSelected(false);
                maleRadioButton.setSelected(true);
            }
            else if (GENDER.equalsIgnoreCase("F")) {
                maleRadioButton.setSelected(false);
                femaleRadioButton.setSelected(true);
            }

                    System.out.println("OK!");
            
            }//end try

            catch (Exception e)
            {System.out.println("error occurred");}

//      --------------------------------------------------------------------------------------------------
        
        
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {

        genderbuttonGroup = new javax.swing.ButtonGroup();
        jLayeredPane1 = new javax.swing.JLayeredPane();
        jPanel1 = new javax.swing.JPanel();
        postCodeTextField = new javax.swing.JTextField();
        StateTextField1 = new javax.swing.JTextField();
        cityTextField = new javax.swing.JTextField();
        gardenTextField = new javax.swing.JTextField();
        houseNumberTextField = new javax.swing.JTextField();
        roadTextField = new javax.swing.JTextField();
        roadLabel = new javax.swing.JLabel();
        houseNumberLabel = new javax.swing.JLabel();
        gardenLabel = new javax.swing.JLabel();
        cityLabel = new javax.swing.JLabel();
        postCodeLabel = new javax.swing.JLabel();
        stateLabel = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        firstNameTextField = new javax.swing.JTextField();
        firstNameLabel = new javax.swing.JLabel();
        displayIcNumber = new javax.swing.JTextField();
        contactNumberLabel = new javax.swing.JLabel();
        contactNumberTextField = new javax.swing.JTextField();
        icNumberLabel = new javax.swing.JLabel();
        genderLabel = new javax.swing.JLabel();
        femaleRadioButton = new javax.swing.JRadioButton();
        maleRadioButton = new javax.swing.JRadioButton();
        DOBLabel = new javax.swing.JLabel();
        dayComboBox = new javax.swing.JComboBox();
        monthComboBox = new javax.swing.JComboBox();
        yearComboBox = new javax.swing.JComboBox();
        backButton = new javax.swing.JButton();
        confirmButton = new javax.swing.JButton();
        lastNameLabel = new javax.swing.JLabel();
        lastNameTextField = new javax.swing.JTextField();
        jLabel1 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setResizable(false);

        jPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanel1.setLayout(null);
        jPanel1.add(postCodeTextField);
        postCodeTextField.setBounds(160, 175, 174, 30);
        jPanel1.add(StateTextField1);
        StateTextField1.setBounds(160, 211, 174, 30);
        jPanel1.add(cityTextField);
        cityTextField.setBounds(160, 139, 174, 30);

        gardenTextField.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                gardenTextFieldActionPerformed(evt);
            }
        });
        jPanel1.add(gardenTextField);
        gardenTextField.setBounds(160, 103, 174, 30);

        houseNumberTextField.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                houseNumberTextFieldActionPerformed(evt);
            }
        });
        jPanel1.add(houseNumberTextField);
        houseNumberTextField.setBounds(160, 31, 176, 30);

        roadTextField.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                roadTextFieldActionPerformed(evt);
            }
        });
        jPanel1.add(roadTextField);
        roadTextField.setBounds(160, 67, 174, 30);

        roadLabel.setText("Street/Road");
        jPanel1.add(roadLabel);
        roadLabel.setBounds(16, 72, 80, 20);

        houseNumberLabel.setText("Apartment/House No");
        jPanel1.add(houseNumberLabel);
        houseNumberLabel.setBounds(16, 36, 134, 20);

        gardenLabel.setText("Complex/Garden");
        jPanel1.add(gardenLabel);
        gardenLabel.setBounds(20, 108, 120, 20);

        cityLabel.setText("City");
        jPanel1.add(cityLabel);
        cityLabel.setBounds(16, 144, 70, 20);

        postCodeLabel.setText("Post code");
        jPanel1.add(postCodeLabel);
        postCodeLabel.setBounds(16, 180, 80, 20);

        stateLabel.setText("State");
        jPanel1.add(stateLabel);
        stateLabel.setBounds(16, 216, 60, 20);

        jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMAGE_REPOSITORY/Background4 copy.jpg"))); // NOI18N
        jLabel2.setText("jLabel2");
        jPanel1.add(jLabel2);
        jLabel2.setBounds(-310, -140, 1010, 720);

        jPanel1.setBounds(420, 19, 360, 270);
        jLayeredPane1.add(jPanel1, javax.swing.JLayeredPane.DEFAULT_LAYER);
        firstNameTextField.setBounds(150, 50, 160, 30);
        jLayeredPane1.add(firstNameTextField, javax.swing.JLayeredPane.DEFAULT_LAYER);

        firstNameLabel.setText("First Name");
        firstNameLabel.setBounds(20, 60, 80, 20);
        jLayeredPane1.add(firstNameLabel, javax.swing.JLayeredPane.DEFAULT_LAYER);

        displayIcNumber.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                displayIcNumberActionPerformed(evt);
            }
        });
        displayIcNumber.setBounds(150, 130, 160, 30);
        jLayeredPane1.add(displayIcNumber, javax.swing.JLayeredPane.DEFAULT_LAYER);

        contactNumberLabel.setText("Contact Number");
        contactNumberLabel.setBounds(20, 180, 100, 20);
        jLayeredPane1.add(contactNumberLabel, javax.swing.JLayeredPane.DEFAULT_LAYER);

        contactNumberTextField.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                contactNumberTextFieldActionPerformed(evt);
            }
        });
        contactNumberTextField.setBounds(150, 170, 160, 30);
        jLayeredPane1.add(contactNumberTextField, javax.swing.JLayeredPane.DEFAULT_LAYER);

        icNumberLabel.setText("IC Number ");
        icNumberLabel.setBounds(20, 140, 90, 20);
        jLayeredPane1.add(icNumberLabel, javax.swing.JLayeredPane.DEFAULT_LAYER);

        genderLabel.setText("Gender");
        genderLabel.setBounds(20, 270, 60, 30);
        jLayeredPane1.add(genderLabel, javax.swing.JLayeredPane.DEFAULT_LAYER);

        genderbuttonGroup.add(femaleRadioButton);
        femaleRadioButton.setText("Female");
        femaleRadioButton.setBounds(230, 270, 80, 30);
        jLayeredPane1.add(femaleRadioButton, javax.swing.JLayeredPane.DEFAULT_LAYER);

        genderbuttonGroup.add(maleRadioButton);
        maleRadioButton.setText("Male");
        maleRadioButton.setBounds(150, 270, 70, 30);
        jLayeredPane1.add(maleRadioButton, javax.swing.JLayeredPane.DEFAULT_LAYER);

        DOBLabel.setText("D.O.B");
        DOBLabel.setBounds(20, 230, 70, 20);
        jLayeredPane1.add(DOBLabel, javax.swing.JLayeredPane.DEFAULT_LAYER);

        dayComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "dd", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));
        dayComboBox.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                dayComboBoxItemStateChanged(evt);
            }
        });
        dayComboBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                dayComboBoxActionPerformed(evt);
            }
        });
        dayComboBox.setBounds(150, 220, 60, 30);
        jLayeredPane1.add(dayComboBox, javax.swing.JLayeredPane.DEFAULT_LAYER);

        monthComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "mm", "JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JUL", "AUG", "SEP", "OCT", "NOV", "DEC" }));
        monthComboBox.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                monthComboBoxItemStateChanged(evt);
            }
        });
        monthComboBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                monthComboBoxActionPerformed(evt);
            }
        });
        monthComboBox.setBounds(220, 220, 70, 30);
        jLayeredPane1.add(monthComboBox, javax.swing.JLayeredPane.DEFAULT_LAYER);

        yearComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "yyyy", "1950", "1951", "1952", "1953", "1954", "1955", "1956", "1957", "1958", "1959", "1960", "1961", "1962", "1963", "1964", "1965", "1966", "1967", "1968", "1969", "1970", "1971", "1972", "1973", "1974", "1975", "1976", "1977", "1978", "1979", "1980", "1981", "1982", "1983", "1984", "1985", "1986", "1987", "1988", "1989", "1990", "1991", "1992", "1993", "1994", "1995", "1996", "1997", "1998", "1999", "2000", "2001", "2002", "2003", "2004", "2005", "2006", "2007", "2008", "2009", "2010" }));
        yearComboBox.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                yearComboBoxItemStateChanged(evt);
            }
        });
        yearComboBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                yearComboBoxActionPerformed(evt);
            }
        });
        yearComboBox.setBounds(300, 220, 70, 30);
        jLayeredPane1.add(yearComboBox, javax.swing.JLayeredPane.DEFAULT_LAYER);

        backButton.setText("BACK");
        backButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                backButtonActionPerformed(evt);
            }
        });
        backButton.setBounds(660, 350, 110, 30);
        jLayeredPane1.add(backButton, javax.swing.JLayeredPane.DEFAULT_LAYER);

        confirmButton.setText("SAVE ");
        confirmButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                confirmButtonActionPerformed(evt);
            }
        });
        confirmButton.setBounds(540, 350, 110, 30);
        jLayeredPane1.add(confirmButton, javax.swing.JLayeredPane.DEFAULT_LAYER);

        lastNameLabel.setText("Last Name");
        lastNameLabel.setBounds(20, 100, 90, 20);
        jLayeredPane1.add(lastNameLabel, javax.swing.JLayeredPane.DEFAULT_LAYER);
        lastNameTextField.setBounds(150, 90, 160, 30);
        jLayeredPane1.add(lastNameTextField, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMAGE_REPOSITORY/Background4 copy.jpg"))); // NOI18N
        jLabel1.setText("jLabel1");
        jLabel1.setBounds(0, 0, 820, 500);
        jLayeredPane1.add(jLabel1, javax.swing.JLayeredPane.DEFAULT_LAYER);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLayeredPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 816, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLayeredPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 406, javax.swing.GroupLayout.PREFERRED_SIZE)
        );

        pack();
    }// </editor-fold>

    private void backButtonActionPerformed(java.awt.event.ActionEvent evt) {                                           
        new MEMBER_CHECK_EDIT().setVisible(true);
        this.setVisible(false);
}                                          

    public String convertMonth (String month) {
        String Month = "";

             if (month.equals("01")) Month = "JAN";
        else if (month.equals("02")) Month = "FEB";
        else if (month.equals("03")) Month = "MAR";
        else if (month.equals("04")) Month = "APR";
        else if (month.equals("05")) Month = "MAY";
        else if (month.equals("06")) Month = "JUN";
        else if (month.equals("07")) Month = "JUL";
        else if (month.equals("08")) Month = "AUG";
        else if (month.equals("09")) Month = "SEP";
        else if (month.equals("10")) Month = "OCT";
        else if (month.equals("11")) Month = "NOV";
        else if (month.equals("12")) Month = "DEC";
        else {Month = "ERR";}

        return Month;
    }//end of convertMonth()

    public static Boolean error = false;

 public void verifyDate (String day, String month, String year) {
        
     error = false;

        if (day.equals("dd")||month.equals("mm")||year.equals("yyyy")) {
            error = false;
        }

        else {
            int Day = Integer.parseInt(day.trim());
            int Year = Integer.parseInt(year.trim());

            if (month.equals("FEB")||month.equals("APR")||month.equals("JUN")
                                   ||month.equals("SEP")||month.equals("NOV")) {
                if(month.equals("FEB")) {
                    if(Year%4 == 0) {
                        if(Day > 29) {
                            error = true;

                        }
                    }//end if leap year

                    else {
                        if(Day > 28) {
                            error = true;
                        }
                    }//end else (not leap year)
                }//end if feb

                else {
                    if (Day > 30) {
                        error = true;
                    }
                }//end else (april, jun, sep, nov)
            }//end if (jan, mar, may, jul, aug, oct, dec)

            else
                error = false;

        }//end else

            if(error)
        {
            JOptionPane.showMessageDialog(null, "Invalid date entered. \nPlease try again.", "ERROR!", JOptionPane.WARNING_MESSAGE);
        }

    }//end of varify date

    private void yearComboBoxActionPerformed(java.awt.event.ActionEvent evt) {                                             
        // TODO add your handling code here:
}                                            

    private void monthComboBoxActionPerformed(java.awt.event.ActionEvent evt) {                                              
        // TODO add your handling code here:
}                                             

    private void dayComboBoxActionPerformed(java.awt.event.ActionEvent evt) {                                            
        // TODO add your handling code here:
}                                           

    private void gardenTextFieldActionPerformed(java.awt.event.ActionEvent evt) {                                                
        // TODO add your handling code here:
}                                               

    private void roadTextFieldActionPerformed(java.awt.event.ActionEvent evt) {                                              
        // TODO add your handling code here:
}                                             

    private void houseNumberTextFieldActionPerformed(java.awt.event.ActionEvent evt) {                                                     
        // TODO add your handling code here:
}                                                    

    private void contactNumberTextFieldActionPerformed(java.awt.event.ActionEvent evt) {                                                       
        // TODO add your handling code here:
}                                                      

    private void displayIcNumberActionPerformed(java.awt.event.ActionEvent evt) {                                                
        // TODO add your handling code here:
}                                               

    private void confirmButtonActionPerformed(java.awt.event.ActionEvent evt) {                                              

        String day   = (String)dayComboBox.getSelectedItem();
        String month = (String)monthComboBox.getSelectedItem();
        String year  = (String)yearComboBox.getSelectedItem();
        verifyDate(day,month,year);

        if (!error)
        {

        String m_fname = (String)firstNameTextField.getText().trim();
        String m_lname = (String)lastNameTextField.getText().trim();
        String m_icno  = (String)displayIcNumber.getText().trim();
        String m_contact = (String)contactNumberTextField.getText().trim();
        
        String housenum = (String)houseNumberTextField.getText().trim();
        String road     = (String)roadTextField.getText().trim();
        String garden   = (String)gardenTextField.getText().trim();
        String city     = (String)cityTextField.getText().trim();
        String postcode = (String)postCodeTextField.getText().trim();
        String state    = (String)StateTextField1.getText().trim();
        
        String m_gender = "";
        
        if (maleRadioButton.isSelected())
        {
            m_gender = "M";
        }
        else
        {
            m_gender = "F";
        }

        String m_dob = dayComboBox.getSelectedItem()+"-"+monthComboBox.getSelectedItem()+"-"+yearComboBox.getSelectedItem();

//      --------------------------------------------------------------------------------------------------

                try {
                    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
                    Connection con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE","javaproject","javaproject");

//      --------------------------------------------------------------------------------------------------

                    PreparedStatement pstmt1 = con.prepareStatement("update MEMBER "
                            + "set MEMBER_FNAME = '" + m_fname +    "', "
                            + "MEMBER_LNAME = '" + m_lname +        "', "
                            + "MEMBER_GENDER = '" + m_gender +      "', "
                            + "MEMBER_DOB = '" + m_dob +            "', "
                            + "MEMBER_CONTACTNO = '" + m_contact +  "', "
                            + "MEMBER_ICNO = '" + m_icno +          "', "
                            + "MEMBER_HOUSENO = '" + housenum +     "', "
                            + "MEMBER_GARDEN = '" + garden +        "', "
                            + "MEMBER_STREET = '" + road +          "', "
                            + "MEMBER_POSTCODE = '" + postcode +    "', "
                            + "MEMBER_CITY = '" + city +            "', "
                            + "MEMBER_STATE = '" + state +          "' where MEMBER_CODE = '" + MEMBER_CHECK_EDIT.member_code + "'");

//      --------------------------------------------------------------------------------------------------

                    pstmt1.executeUpdate();
                    pstmt1.close();


                    System.out.println("OK! statement entered");
                    JOptionPane.showMessageDialog(null, "Update successful.", "System Message", JOptionPane.INFORMATION_MESSAGE);

                    this.setVisible(false);
                    new MAIN_MENU().setVisible(true);

                }//end try

                catch (Exception e) {
                    System.out.println("error occurs during edit");
                    JOptionPane.showMessageDialog(null, "Update unsuccessful.", "System Message", JOptionPane.INFORMATION_MESSAGE);}

//      --------------------------------------------------------------------------------------------------

        }

        else
        {}



    }                                             

    private void dayComboBoxItemStateChanged(java.awt.event.ItemEvent evt) {                                             
        String day   = (String)dayComboBox.getSelectedItem();
        String month = (String)monthComboBox.getSelectedItem();
        String year  = (String)yearComboBox.getSelectedItem();
        verifyDate(day,month,year);
    }                                            

    private void monthComboBoxItemStateChanged(java.awt.event.ItemEvent evt) {                                               
        String day   = (String)dayComboBox.getSelectedItem();
        String month = (String)monthComboBox.getSelectedItem();
        String year  = (String)yearComboBox.getSelectedItem();
        verifyDate(day,month,year);
    }                                              

    private void yearComboBoxItemStateChanged(java.awt.event.ItemEvent evt) {                                              
        String day   = (String)dayComboBox.getSelectedItem();
        String month = (String)monthComboBox.getSelectedItem();
        String year  = (String)yearComboBox.getSelectedItem();
        verifyDate(day,month,year);
    }                                             

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new MEMBER_EDIT().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify
    private javax.swing.JLabel DOBLabel;
    public static volatile javax.swing.JTextField StateTextField1;
    private javax.swing.JButton backButton;
    private javax.swing.JLabel cityLabel;
    public static volatile javax.swing.JTextField cityTextField;
    private javax.swing.JButton confirmButton;
    private javax.swing.JLabel contactNumberLabel;
    public static volatile javax.swing.JTextField contactNumberTextField;
    public static volatile javax.swing.JComboBox dayComboBox;
    public static volatile javax.swing.JTextField displayIcNumber;
    public static volatile javax.swing.JRadioButton femaleRadioButton;
    private javax.swing.JLabel firstNameLabel;
    public static volatile javax.swing.JTextField firstNameTextField;
    private javax.swing.JLabel gardenLabel;
    public static volatile javax.swing.JTextField gardenTextField;
    private javax.swing.JLabel genderLabel;
    private javax.swing.ButtonGroup genderbuttonGroup;
    private javax.swing.JLabel houseNumberLabel;
    public static volatile javax.swing.JTextField houseNumberTextField;
    private javax.swing.JLabel icNumberLabel;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLayeredPane jLayeredPane1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JLabel lastNameLabel;
    public static volatile javax.swing.JTextField lastNameTextField;
    public static volatile javax.swing.JRadioButton maleRadioButton;
    public static volatile javax.swing.JComboBox monthComboBox;
    private javax.swing.JLabel postCodeLabel;
    public static volatile javax.swing.JTextField postCodeTextField;
    private javax.swing.JLabel roadLabel;
    public static volatile javax.swing.JTextField roadTextField;
    private javax.swing.JLabel stateLabel;
    public static volatile javax.swing.JComboBox yearComboBox;
    // End of variables declaration

}
